home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v9n10.arc / DEBUGBAT.BAT < prev    next >
DOS Batch File  |  1990-04-27  |  1KB  |  39 lines

  1.  
  2. ::::: DEBUGBAT.BAT
  3. @ECHO OFF
  4. REM The start of the DEBUGBAT.BAT file.
  5. IF '%DEBUG-IT%'=='Yes' GOTO debug-a
  6. SET ECHO-IT=OFF
  7. SET WHERE-TO=NUL
  8. GOTO debug-b
  9. :debug-a
  10. SET ECHO-IT=ON
  11. SET WHERE-TO=CON
  12. :debug-b
  13. @ECHO %ECHO-IT%
  14. ::::: Above lines set up the easy-debugging-info potential.
  15.  
  16. ::::: Put the body of the batch file here.
  17. ECHO Kilroy was here.  Pat Paulsen for president.
  18.  
  19. ::::: For debugging, it might contain statements such as the following:
  20. copy a:skeleton.bat b:autoexec.bat > %WHERE-TO%
  21. IF NOT '%DEBUG-IT%'=='Yes' GOTO continue
  22. ::::: Get here when DEBUG-IT = Yes so can gather some debugging info.
  23. DIR B:*.BAT
  24. PAUSE IF OK, continue.  Or, use Ctrl-Break to quit at this point.
  25.  
  26. :continue
  27. ::::: Continue on with the batch file, and reach a place where you
  28. :::::   might want to obtain some more debugging information.
  29. IF '%DEBUG-IT%'=='Yes' CALL GETCOMND.BAT
  30. ::::: Continue on with the batch file.
  31.  
  32. ::::: Following lines "erase" the environment variables.
  33. SET DEBUG-IT=
  34. SET ECHO-IT=
  35. SET WHERE-TO=
  36. REM The end of the DEBUGBAT.BAT file.
  37.  
  38.  
  39.